<!--
 * @Description: 变形
 * @Author: zzj
 * @Date: 2021-08-19 09:31:58
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-19 09:37:22
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变形</title>
    <style>
        .box{
            background-color: blueviolet;
            width: 300px;
            height: 300px;
            margin: 100px auto;
            transition: transform 2s,2s 0s  linear;
            transform-origin:top;
        }
        .box:hover{
            /* transform: translate(100px,0); */
            /* transform: skew(30deg); */
            transform: rotate(45deg);
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>
</head>
<body>
    
</body>
</html>